*****************************************************************
* Replications for Joseph K. Young PRQ                          *
* Repression, Dissent, and the Onset of Civil War               ** MIEST models--Combines Estimates from the imputed data for    * 
* logit models and Repress/Dissent Equations                    ** Date: Last updated--5/28/12                                   *******************************************************************To perform these estimations, you will need the miest command from Kenneth Scheve and misum
*To acquire misum type (net install misum.pkg) into Stata
*To acquire miest (http://pantheon.yale.edu/~ks298/miv2.zip)*************************************** Need to change directory and       ** open one data set from imputed 5   ****************************************make this the directory that has the 5 imputed data setscd imputed data*use the first data setuse imputed data/data1.dta*************************************** Creates macro for listing variables** under single word--controls        *************************************** 
*if you want to estimate models separately, cut and paste the control variables where it says `controls'
*otherwise just run the entire do-file
local controls warl gdpenl lpop lmtnest ncontig Oil polity2 nwstate instab ethfrac relfrac*************************** Table 1                *
* Dissident Activity     *                        **************************miest data xtpcse lndiss rpc_4 repression_lag diss_lag haz milex `controls', pairwise*************************** Table 2                *
* Repression             *                        **************************miest data xtpcse pts_a haz repression_lag diss_lag rpc_4 milex `controls', pairwise************************************ Table 3 Model 1                 *
* Replicating Fearon and Laitin   ************************************miest data logit onset `controls', robust***************************************
* Table 3 Model 2                     ** Estimate Logit Model w/o Residuals  *
* Restricted Model                    ****************************************miest data logit onset pts_a lndiss `controls', robust*******************************************
* Table 3 Model 3                         ** Estimate Logit Model with Residuals     *
* Unrestricted Model                      ********************************************miest data logit onset pts_a lndiss diss_res repress_res `controls', robust************************** Misum--summary stats  *
* for the imputed data  **************************misum data pts_a haz repression_lag diss_res repress_res lndiss diss_lag rpc_4 milex onset warl gdpenl lpop lmtnest ncontig Oil nwstate instab ethfrac relfrac polity2